<include file="Common:header" />
<div class="layui-card layadmin-header"> <span class="layui-breadcrumb" lay-separator="/"> <a href="{:U('Index/welcome')}">首页</a><a href="{:U('Core/index')}">菜单管理</a> </span> </div>

<div class="layui-fluid pt-10 pr-10 pl-20">
	<table class="layui-table">
		<thead>
			<tr>
				<th>LM_ID</th>
				<th>菜单标题</th>
				<th>项目标题</th>
				<th>功能链接</th>
				<th>管理链接</th>
				<th>是否可用</th>
				<th style="text-align:center">单项操作</th>
			</tr>
		</thead>
		<tbody>
			<foreach name="data" item="val">
				<tr>
					<td>{$val['lm_id']}</td>
					<td>{$val['lm_name']}</td>
					<td>{$val['menu_name']}</td>
					<td>{:U($val['action'].'/'.$val['function'])}</td>
					<td>{$val['manage']?'√':'×'}</td>
					<td>{$val['use']?'√':'×'}</td>
					<td style="text-align:center"><div class="layui-btn-group"><a class="layui-btn layui-btn-primary layui-btn-sm" href="{:U('Core/add',array('id'=>$val['id']))}"><i class="layui-icon layui-icon-edit"></i>编辑</a> <a class="layui-btn layui-btn-primary layui-btn-sm" onClick="return confirm('确定要删除吗?');" href="{:U('Core/delete',array('id'=>$val['id']))}"><i class="layui-icon layui-icon-delete"></i>删除</a></td>
				</tr>
			</foreach>
		</tbody>
	</table>
</div>
<script>
layui.use(['element'], function(){});
</script>
<include file="Common:footer" />